//
//  ABRecordReader.h
//  Voxper
//
//  Created by Erphan on 2/22/11.
//  Copyright 2011 Smonte. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>

@interface ABRecordReader : NSObject {

}

+ (NSString*)personFirstName:(ABRecordRef)person;
+ (NSString*)personLastName:(ABRecordRef)person;
+ (NSString*)personContactName:(ABRecordRef)person;
+ (NSString*)personCompositeName:(ABRecordRef)person;
+ (NSString*)personOrganizationName:(ABRecordRef)person;
+ (UIImage*)personDisplayImage:(ABRecordRef)person withThumbnail:(BOOL)isThumbnail;
//+ (NSArray*)personContactInfo:(ABRecordRef)person;

+ (NSString*)escapeVCard:(NSString*)value;

+ (NSArray*)personPhoneProperties:(ABRecordRef)person;
+ (NSString*)cleanNumber:(NSString*)num;
+ (NSArray*)personContactNumbers:(ABRecordRef)person;
+ (NSArray*)personContactNumbers:(ABRecordRef)person :(BOOL)bClean;
+ (NSString*)personSelectedValue:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier;

@end
